// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import VueI18n from 'vue-i18n'
import axios from 'axios'
import utils from './utils/index.js'
import { Collapse,Icon } from 'ant-design-vue'
Vue.use(VueI18n)
Vue.use(Collapse)
Vue.use(Icon)
Vue.prototype.$http = axios
Vue.prototype.utils = utils
// Vue.prototype.$message = Message
const i18n=new VueI18n({
  locale:localStorage.getItem('languageSet')||'en',   //从localStorage里获取用户中英文选择，没有则默认中文
  messages:{
    'zh':require('./components/language/zh'),
    'en':require('./components/language/en'),
    // 'jp':require('./components/language/jp'),
    // 'ko':require('./components/language/ko'),
    // 'es':require('./components/language/es'),
  }
})
Vue.config.productionTip = false

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  i18n,
  components: { App },
  template: '<App/>'
})
